package com.athuiju.fenxiaoback.service;

import com.athuiju.fenxiaoback.entity.TbCart;
import com.athuiju.fenxiaoback.entity.TbCartitem;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author athuiju
 * @since 2021-07-02
 */
public interface TbCartService extends IService<TbCart> {

    public List<TbCartitem> getCurrentUserCartItems(String memberid);


    TbCartitem addToCart(Long skuId, Integer num,String memberid);

    List<TbCartitem> selectMemberCart(String memberid);

    Integer delMemberCartItem(String memberid, String[] skuid);
}
